package com.paper.tiger.datasource.common;

import java.lang.annotation.*;

/**
 * Created by 鸠摩智 on 2018/11/23.
 * 用法：
 * @DataSource
 * class A{}
 *
 *   class B{
 *      @DataSource
 *     public void a(){}
 *  }
 *
 */
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSource
{

    /**
     * 默认数据源为 master
     * @return
     */
    String value() default "master";
}
